<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="icon" href="img/favicon.ico">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="layui/css/layui.css">
    <link rel="stylesheet" href="css/reset.css">
    <link rel="stylesheet" href="css/vendor.min.css">
    <link rel="stylesheet" href="css/plugins.min.css">
    <link rel="stylesheet" href="css/style.min.css">
    <style>
        .pwde-table tr, td, th {
            height: 50px;
            border: solid 1px black;
        }
        html{
            height: 100%;
            overflow-y: hidden;
        }
        body{
            height: 100%;
            overflow-y: auto;
        }
    </style>
</head>
<body>
<div class="container" style="margin-top: 30px;">
    <div class="row" style="display: none;">
        暂无内容
    </div>
    <div class="container" style="padding-bottom: 50px;">
<!--        <h2 class="title">系统集成</h2>-->
        <div id="detail"></div>
    </div>
</div>

<script src="js/vendor.min.js"></script>
<script src="js/plugins.min.js"></script>
<script src="js/main.min.js"></script>
<script src="layui/layui.js"></script>
<script src="js/token.js"></script>
<script src="js/config.js"></script>
<script src="js/jquery.i18n.min.js"></script>
<script src="js/multi_lang_config.js"></script>
<script>

    var layer = layui.layer;
    var form = layui.form;

    var moduleName = "subMain";
    var defaultLang = layui.data('langTab').langType;
    initLangConfig({
        defaultLang:defaultLang,
        filePath: "js/i18n/"+moduleName+"/",
        module:moduleName,
        base:"js/"
    })
    var i18np = null;
    function changeLang(lang) {
        defaultLang = lang;
        reloadI18n({
            defaultLang:lang,
            filePath: "js/i18n/"+moduleName+"/",
            module:moduleName,
        })
        i18np.loadProperties(moduleName);
        homeTelDataInit();
    }

    layui.config({base: 'js/'})
        // 继承treetable.js插件
        .extend({i18np: 'i18n'}).use([ 'i18np','jquery'], function () {
        i18np = layui.i18np;
        i18np.loadProperties(moduleName);
    });

    var homeTelData = {};
    function homeTelDataInit(){
        if (defaultLang == "zh") {
            $('#detail').html(homeTelData.contentZh);
        } else if (defaultLang == "la") {
            $('#detail').html(homeTelData.contentLao);
        } else if (defaultLang == "en") {
            $('#detail').html(homeTelData.contentEn);
        }
    }

    $(function (){
        search();
    })
    function search() {
        $.ajax({
            url: HOST+"phoneOrSales/getPhoneOrSalesByType?type=7",
            type: "GET",
            success: function (res) {
                if (res.code == 200){
                    if (res.data == null || res.data == "" || res.data == undefined){
                        $(".row").show();
                    }
                    homeTelData = res.data;
                    homeTelDataInit();
                }else{
                    $(".row").show();
                }
            }
        })
    }

</script>
</body>
</html>